package com.ruoyi.system.controller;

import com.ruoyi.system.domain.VehicleInformation;
import com.ruoyi.system.service.impl.VehicleInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;



@RestController
public class VehicleInformationController {

    @Autowired
    private VehicleInformationService vehicleInformationService;

    @GetMapping("/vehicles")
    public List<VehicleInformation> getAllVehicles() {
        return vehicleInformationService.getAllVehicles();
    }
}
